pp108 : Triggering a Business Process from Rules

Triggering a Business Process from Rules

This topic describes the procedure to trigger a business process from rules.

Before you begin this task:

You can trigger a business process from a rule using the Trigger Business Process option in a rule modeler. For instance, let us assume that a customer has placed an order. On inserting the Order, a rule is triggered, which checks whether the items exist in the inventory. If the items do not exist, the transaction should abort. If the items exist, the order processing business process is triggered.

  1. Depending upon how you access a document, creating a rule and accessing the business object can be done in various ways. Refer to Accessing the Rule Modelerfor more information.
  2. Set the properties of the rule on the Properties tab. For more information on the various fields on the rule properties interface, refer to properties of a rule.
  3. Click the Behavior tab to define the rule's behavior. For more information, refer to Defining Rule Behavior.
  4. To trigger a business process, while defining a rule action, do the following:
    1. In the Rule Definition pane, right-click then> Actions > Trigger Business Process.
    2. Type the name of the action in the Action Name text box. For more information on naming the action, refer to Guidelines for Naming Rule Actions.
    3. Click on the rule modeler tool bar. A Quick Access Menu is displayed.
    4. Click Insert on the sidebar. All the related artifacts are displayed on the Quick Access Menu.
    5. Drag the required business processfrom the Quick Access Menu to the Action - Trigger Business Process section.
      The Action - Trigger Business Process pane is populated with the Process Name. The input message of the selected process is displayed in the Message text box below.
    6. In the message box, specify the required parameters of the input message to be sent to the process and click Add. The type of action along with the name is displayed next to then in the Rule Definition pane.
  5. Click .

A rule is defined on the template that triggers a business process. Repeat the task to add more business processes to the rule.



Related tasks

Invoking a Web service in Rules
Triggering Rules from a Business Process Model
Using a Business Rule in an XForm
Using WS-AppServer Business Logic in XForms